﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DesignPattern.行为型模式.StatePattern
{
    public class PendingDispatchState : WoState
    {
        public override void Handle(WorkOrderContent wo)
        {
            Console.WriteLine("PendingDispatchState Handle by Affilate  " + DateTime.Now.ToString());
            Dispatch();
            Console.WriteLine("Send Email to Affilate ");
        }

        public void Dispatch()
        {
            Console.WriteLine("Dispatch");
        }


    }
}
